﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;

namespace KopytkoService
{
    [ServiceContract(SessionMode = SessionMode.Required)]
    public interface IMainService
    {
        [OperationContract]
        [FaultContract(typeof(AuthenticationFault))]
        Game[] GetAvailableGames(int sessionId);

        [OperationContract]
        [FaultContract(typeof(AuthenticationFault))]
        Game GetGame(int sessionId, int gameId);

        [OperationContract]
        [FaultContract(typeof(AuthenticationFault))]
        int LogIn(string username, string password);

        [OperationContract]
        [FaultContract(typeof(AuthenticationFault))]
        void LogOut(int sessionId);

    }
}
